package model;
/**
 * 用户实体
 * @author 梁
 *
 */
public class User {

	private int id;   //编号
	private String userName;    //用户名
	private String passWord;     //密码
	private String sex;//性别
	private String userType;//用户类型
	private String tel;//手机号码
	private String email;//邮件
	
	public User() {
		super();
		
	}
	

	public User( String userName, String passWord,String userType) {
		super();
		this.userName = userName;
		this.passWord = passWord;
		this.userType=userType;
	}
	
	public User( String userName, String passWord) {
		super();
		this.userName = userName;
		this.passWord = passWord;
		
	}
	public User( String userName) {
		super();
		this.userName = userName;
		
	}
	
	
	

	public User(int id, String userName, String passWord, String sex, String userType, String tel, String email) {
		super();
		this.id = id;
		this.userName = userName;
		this.passWord = passWord;
		this.sex = sex;
		this.userType = userType;
		this.tel = tel;
		this.email = email;
	}


	public User(String userName, String passWord, String userType, String tel) {
		super();
		this.userName = userName;
		this.passWord = passWord;
		this.userType = userType;
		this.tel = tel;
	}


	public User(String userName, String passWord, String sex, String userType, String tel, String email) {
		super();
		this.userName = userName;
		this.passWord = passWord;
		this.sex = sex;
		this.userType = userType;
		this.tel = tel;
		this.email = email;
	}


	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassWord() {
		return passWord;
	}
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}


	public String getSex() {
		return sex;
	}


	public void setSex(String sex) {
		this.sex = sex;
	}


	public String getUserType() {
		return userType;
	}


	public void setUserType(String userType) {
		this.userType = userType;
	}


	public String getTel() {
		return tel;
	}


	public void setTel(String tel) {
		this.tel = tel;
	}


	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}
	
	@Override
	public String toString() {
		return userType;
	}
	
}
